<?php
declare (strict_types = 1);
namespace app\common\model\content;

use think\model\Pivot;

/**
 * @mixin think\Model
 */
class ArticleTag  extends Pivot
{
    protected $autoWriteTimestamp = false;

    // 设置字段信息
    protected $schema = [
        'article_id'    => 'int',
        'tag_id'        => 'int',
        'create_time'   => 'int',
    ];

    //类型自动转换
    protected $type  = [
        'article_id' => 'integer',
        'tag_id'     => 'integer',
    ];

}
